package org.jfunction.internal.parser;

import org.jfunction.parser.ParseException;
import org.jfunction.parser.ProblemHandler;
import org.jfunction.parser.Problem;

public class DefaultProblemHandler implements ProblemHandler{

	@Override
	public void add(Problem problem) {
		String msg = "Error at line "+problem.getLineNumber()+": "+problem.getProblemType().toString();
		throw new ParseException(msg);
	}
}
